﻿<%@ Page Title="学习问答" Language="C#" MasterPageFile="~/HealthCommunity.Master" AutoEventWireup="true" CodeBehind="QuestionList.aspx.cs" Inherits="HealthCommunity.QuestionList" %>

<%@ Register Src="Controls/UCQuestionList.ascx" TagName="UCQuestionList" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
	<link href="css/jqueryui/jquery-ui-1.8.20.custom.css" rel="stylesheet" type="text/css" />
	<script src="Scripts/jquery-1.7.2.min.js" type="text/javascript"></script>
	<script src="Scripts/jquery-ui-1.8.20.custom.min.js" type="text/javascript"></script>
	<script type="text/javascript">
		$(function () {
			$("#questiontabs").tabs({
				ajaxOptions: {
					error: function (xhr, status, index, anchor) {
						$(anchor.hash).html(
						"Couldn't load this tab. We'll try to fix this as soon as possible. " +
						"If this wouldn't be a demo.");
					}
				}
			});
		});
	</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
	<asp:ScriptManager ID="sm" runat="server">
	</asp:ScriptManager>
	<div class="contenttitle">
		<h2>
			学习问答</h2>
	</div>
	<div class="rightcontentitem">
		<asp:HyperLink ID="hlAskQuestion" runat="server" Text="我要提问" NavigateUrl="AskQuestion.aspx"></asp:HyperLink>
	</div>
	<div id="questiontabs">
		<ul>
			<li>
				<a href="#tabs-1">
					已解决问题
				</a>
			</li>
			<li>
				<a href="#tabs-2">
					未解决问题
				</a>
			</li>
			<li>
				<a href="#tabs-3">
					我提的问题
				</a>
			</li>
			<li>
				<a href="#tabs-4">
					我回答的问题</a>
			</li>
		</ul>
		<div id="tabs-1">
			<uc1:UCQuestionList ID="UCQuestionList1" runat="server" GetQuestionType="1" />
		</div>
		<div id="tabs-2">
			<uc1:UCQuestionList ID="UCQuestionList2" runat="server" GetQuestionType="2" />
		</div>
		<div id="tabs-3">
			<uc1:UCQuestionList ID="UCQuestionList3" runat="server" GetQuestionType="3" />
		</div>
		<div id="tabs-4">
			<uc1:UCQuestionList ID="UCQuestionList4" runat="server" GetQuestionType="4" />
		</div>
	</div>
</asp:Content>
